%	Set the standard document class and page format.
\documentclass[a4paper, 12pt]{report}

%	Package used to customize page layout.
\usepackage{geometry}

%	Enable the use of special characters like accents and others.
\usepackage[latin1]{inputenc}

%	Configure latex for the italian typographic standards.
\usepackage[italian]{babel}

%	Set font encoding to T1 (new latex standard).
\usepackage[T1]{fontenc}

%	Add a lot of text symbols.
\usepackage{textcomp}

%	Enable images to be inserted in the document.
\usepackage{graphicx}

%	Enable the 'svgnames' color names from the xcolor package.
\usepackage[svgnames]{xcolor}

%	Enable the creation of multirow tables.
\usepackage{multirow}

%	Enable insertion of code listings.
\usepackage{listings}

%	Source code keyword highlight rules.
\lstset{	basicstyle			=	\footnotesize\ttfamily,
			keywordstyle		=	\color{DarkBlue}\bfseries,
			commentstyle		=	\color{DarkGreen},
			stringstyle			=	\color{Indigo},
			showstringspaces	=	false,
			columns				=	fullflexible,
			breakatwhitespace	=	true,
			breaklines			=	true,
			tabsize				=	3,
			frame					=	shadowbox,
			numbers				=	left,
			numberstyle			=	\tiny,
			stepnumber			=	1,
			frameround			=	tttf,
			columns				=	fullflexible	}

%	Make the index and the references clickable.
\usepackage[dvipdfm]{hyperref}
\hypersetup{
    unicode			=	true,
    pdftoolbar		=	true,
    pdfmenubar		=	true,
    pdffitwindow	=	false,
    pdfstartview	=	{FitH},
    pdftitle		=	{TITOLO PDF},
    pdfauthor		=	{Fabio Marangon},
    pdfsubject		=	{},
    pdfcreator		=	{Fabio Marangon},
    pdfkeywords	=	{},
    pdfnewwindow	=	true,
    colorlinks		=	true,
    linkcolor		=	Indigo,			%	Colore dei link interni al documento.
    citecolor		=	DarkMagenta,	%	Colore dei link della bibliografia.
    filecolor		=	Navy,				%	Colore dei link ai file.
    urlcolor		=	MidnightBlue	%	Colore dei link esterni.
}

%	Used to have the correct references for the figures (figure instead of caption).
\usepackage[figure]{hypcap}

%	Define a new command to draw a thick line.
\newcommand{\HRule}{\rule{\linewidth}{0.3mm}}

%	DOCUMENT BEGIN.
\begin{document}

%	Print the cover and a blank page.
\include{cover}
\

%	Add the table of content.
\newpage
\phantomsection
\label{index}
\addcontentsline{toc}{chapter}{Indice}
\tableofcontents

%	Add the list of figures.
\newpage
\phantomsection
\label{figsList}
\addcontentsline{toc}{chapter}{\numberline{}\listfigurename}
\listoffigures

%	Add the list of tables.
\newpage
\phantomsection
\label{tablesList}
\addcontentsline{toc}{chapter}{\numberline{}\listtablename}
\listoftables

%	Print the chapters.
\include{chaps/example}

%	DOCUMENT END.
\end{document}
